package com.leha.api.quarz;

import com.leha.core.services.GameServices;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

/**
 * Created by xiabin on 2017/9/5.
 */
public class WeeklyCleanRankJob {

    private Logger logger = LogManager.getLogger(WeeklyCleanRankJob.class);

    @Autowired
    private GameServices gameServices;


    protected void execute() {
        logger.info("WeeklyCleanRankJob 开始清理上周排名");
        gameServices.removePreWeekRank();
    }
}
